package dao;

import pojo.MedicalDevice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Result;
import java.util.List;

@Mapper
public interface MedicalDeviceMapper {
    // 查询所有医疗器械信息
    @Select("SELECT * FROM t_medical_device0227")
    @Results({
            @Result(id = true, property = "id", column = "id"),
            @Result(property = "deviceName", column = "device_name"),
            @Result(property = "registrationNumber", column = "registration_number"),
            @Result(property = "applicationScope", column = "application_scope"),
            @Result(property = "expirationDate", column = "expiration_date"),
            @Result(property = "stockQuantity", column = "stock_quantity"),
            @Result(property = "createTime", column = "create_time"),
            @Result(property = "updateTime", column = "update_time")
    })
    List<MedicalDevice> findAllMedicalDevice();
}